import request from '@/utils/request'

// 查询入库列表
export function listStore(query) {
  return request({
    url: '/source/in/store/list',
    method: 'get',
    params: query
  })
}

// 查询入库详细
export function getStore(inStoreId) {
  return request({
    url: '/source/in/store/' + inStoreId,
    method: 'get'
  })
}

// 新增入库
export function addStore(data) {
  return request({
    url: '/source/in/store',
    method: 'post',
    data: data
  })
}

// 修改入库
export function updateStore(data) {
  return request({
    url: '/source/in/store',
    method: 'put',
    data: data
  })
}

// 删除入库
export function delStore(inStoreId) {
  return request({
    url: '/source/in/store/' + inStoreId,
    method: 'delete'
  })
}

///**查询所有农作物入库列表*/
export function getCropInStoreList(){
  return request({
    url: '/source/in/store/get/crop',
    method: 'get'
  })
}

//获取所有仓库列表
export function getStoreList(){
  return request({
    url: '/source/store/get/store/list',
    method: 'get'
  })
}

//确认签收
export function handleSignFor(inStoreId){
  return request({
    url: '/source/in/store/sign/' + inStoreId,
    method: 'get'
  })
}
